import {
	defineStore
} from "pinia"
// import useUserInfoStore from "./user"
// const store=useUserInfoStore()

const useSelectStore = defineStore('select', {
	state: () => ({
		// 游客选择相关状态
		selectedVisitors: [], // 选中的游客列表
		selectedAddress: {}, // 选中的地址
	}),
	getters: {},
	actions: {},
	persist: {
		storage: {
			getItem: uni.getStorageSync,
			setItem: uni.setStorageSync
		},
		key: 'select',
		paths: ['selectedVisitors']
	}
})

export default useSelectStore